package com.dms.modules.community.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 社区点赞实体类
 */
@Data
@TableName("community_like")
@ApiModel(value = "社区点赞", description = "社区点赞信息")
public class CommunityLike {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("点赞ID")
    private Long id;
    
    @ApiModelProperty("用户ID")
    private Long userId;
    
    @ApiModelProperty("目标ID")
    private Long targetId;
    
    @ApiModelProperty("目标类型：1-帖子，2-评论")
    private Integer targetType;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("逻辑删除标志")
    @TableLogic
    private Integer deleted;
} 